package javacafe.action.workshop;

import javacafe.dto.event.SeminarDTO;
import javacafe.dto.event.WorkshopDTO;
import javacafe.dto.member.LoginInfoDTO;
import javacafe.serviceimple.SeminarServiceImple;
import javacafe.serviceimple.WorkshopServiceImple;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import javacafe.action.Action;
import javacafe.action.ActionForward;

public class WorkshopAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {

		ActionForward actfoward = new ActionForward();
		WorkshopServiceImple service = WorkshopServiceImple.getInstance();
	
		List<WorkshopDTO> lists = service.getAllWorkshop();
		
		request.setAttribute("wLists", lists);
		actfoward.setUrl("listworkshop");
		return actfoward;
	}
}
